package com.example.springweb.pojo;

import java.sql.Timestamp;

/**
    * @deprecated 这是个案例
    * @Date  2022/4/12
    */
public class User {
    private Long id; //用户id
    private String user;//用户名
    private String password;//用户密码
    private Timestamp create_time;//账号创建时间
    private Timestamp modify_time;//账号修改密码时间

    public User(Long id, String user, String password, Timestamp create_time, Timestamp modify_time) {
        this.id = id;
        this.user = user;
        this.password = password;
        this.create_time = create_time;
        this.modify_time = modify_time;
    }

    public User(String user, String password) {
        this.user = user;
        this.password = password;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", user='" + user + '\'' +
                ", password='" + password + '\'' +
                ", create_time=" + create_time +
                ", modify_time=" + modify_time +
                '}';
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Timestamp getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Timestamp create_time) {
        this.create_time = create_time;
    }

    public Timestamp getModify_time() {
        return modify_time;
    }

    public void setModify_time(Timestamp modify_time) {
        this.modify_time = modify_time;
    }
}
